/*
 * @Author: lsp<286212824@qq.com>
 * @Date: 2020-07-17 17:12:14
 * @LastEditTime: 2020-07-24 10:31:09
 * @Description: file content
 */ 
import http from '@/libs/httpRequest'

/** 登陆 */
export const loginApi = params => { return http.getApi({ url : `/isvpc/login/identityAuth`,params }) }
// 资产或耗材类别
export const getCategoriesApi = params => { return http.getApi({url:`/isvpc/Category/index`, params})}
// 获取OSS参数
export const getRam = params => { return http.getApi({url:`/isvpc/Jsapi/getOssConfig`, params})}
// 资产二维码
export const qrcode = params => { return http.getApi({url:`/isvpc/Asset/qrcode`, params})}

// 获取耗材所在部门拥有的仓库
export const getMyWarehouse = params => { return http.getApi({url:`/isvpc/Consumable/haveWarehouse`, params})}
// 获取耗材领取部门
export const getReceiveDept = params => { return http.getApi({url:`/isvpc/Consumable/receiveDept`, params})}
// 获取资产所在部门拥有的仓库
export const getMyAssetWarehouse = params => { return http.getApi({url:`/isvpc/Asset/haveWarehouse`, params})}
// 获取资产领取部门
export const getAssetReceiveDept = params => { return http.getApi({url:`/isvpc/Asset/receiveDept`, params})}
// 某仓库耗材分类列表
export const getCategoryByWarehouse = params => { return http.getApi({url:`/isvpc/Category/cateCount`, params})}
// 获取仓库部门
export const getWarehouseDept = params => { return http.getApi({url:`/isvpc/Install/getWarehouseDept`,params})}

/* 获取不可选部门*/
export const getCheckDept = params => { return http.getApi({url:`/isvpc/Assetcheck/getCheckDept`, params})}
/* 获取用户可分配部门*/
export const getCheckUser = params => { return http.getApi({url:`/isvpc/Asset/getCheckUser`, params})}